package com.ruoyi.house.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house.mapper.WebmagicBuildingSaleMapper;
import com.ruoyi.house.domain.WebmagicBuildingSale;
import com.ruoyi.house.service.IWebmagicBuildingSaleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 楼宇售卖Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-09
 */
@Service
public class WebmagicBuildingSaleServiceImpl implements IWebmagicBuildingSaleService 
{
    @Autowired
    private WebmagicBuildingSaleMapper webmagicBuildingSaleMapper;

    /**
     * 查询楼宇售卖
     * 
     * @param id 楼宇售卖主键
     * @return 楼宇售卖
     */
    @Override
    public WebmagicBuildingSale selectWebmagicBuildingSaleById(Long id)
    {
        return webmagicBuildingSaleMapper.selectWebmagicBuildingSaleById(id);
    }

    /**
     * 查询楼宇售卖列表
     * 
     * @param webmagicBuildingSale 楼宇售卖
     * @return 楼宇售卖
     */
    @Override
    public List<WebmagicBuildingSale> selectWebmagicBuildingSaleList(WebmagicBuildingSale webmagicBuildingSale)
    {
        return webmagicBuildingSaleMapper.selectWebmagicBuildingSaleList(webmagicBuildingSale);
    }

    /**
     * 新增楼宇售卖
     * 
     * @param webmagicBuildingSale 楼宇售卖
     * @return 结果
     */
    @Override
    public int insertWebmagicBuildingSale(WebmagicBuildingSale webmagicBuildingSale)
    {
        return webmagicBuildingSaleMapper.insertWebmagicBuildingSale(webmagicBuildingSale);
    }

    /**
     * 修改楼宇售卖
     * 
     * @param webmagicBuildingSale 楼宇售卖
     * @return 结果
     */
    @Override
    public int updateWebmagicBuildingSale(WebmagicBuildingSale webmagicBuildingSale)
    {
        return webmagicBuildingSaleMapper.updateWebmagicBuildingSale(webmagicBuildingSale);
    }

    /**
     * 批量删除楼宇售卖
     * 
     * @param ids 需要删除的楼宇售卖主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicBuildingSaleByIds(String ids)
    {
        return webmagicBuildingSaleMapper.deleteWebmagicBuildingSaleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除楼宇售卖信息
     * 
     * @param id 楼宇售卖主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicBuildingSaleById(Long id)
    {
        return webmagicBuildingSaleMapper.deleteWebmagicBuildingSaleById(id);
    }
}
